#!/bin/sh

./configure --prefix=/usr/local/termcap-1.3.1 && make && make install
#应该是没用的



 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/ncurses-5.8/lib/ \
#否则会报错 : error: No curses/termcap library found

./configure --prefix=/usr/local/mysql-5.1.72 --datadir=/usr/local/mysql-5.1.72/data


libtool-2.2.2
tar -zxf libtool-2.2.2.tar.gz
./configure && make && make install

修改mysql-5.1.72.tar.gz\configure:
Line52126:$RM "$cfgfile"
将此行注释掉

./configure --prefix=/usr/local/mysql-5.1.72 --datadir=/usr/local/mysql-5.1.72/data
make && make install

chown -R mysql /usr/local/mysql-5.1.72 && chgrp -R mysql /usr/local/mysql-5.1.72
cd /usr/local/mysql-5.1.72/ &&  ./bin/mysql_install_db --user=mysql --datadir=/usr/local/mysql-5.1.72/data


# 安装完后 设置root初始密码
/usr/local/mysql-5.1.72/bin/mysqladmin password

# 以后修改root密码 密码改为pwd2
/usr/local/mysql-5.1.72/bin/mysqladmin -uroot -pPWD15mysql password pwd2